//
//  DRNavigationController.m
//  DoctorRen
//
//  Created by Macx on 2018/12/10.
//

#import "DRNavigationController.h"

@interface DRNavigationController ()<UINavigationControllerDelegate, UIGestureRecognizerDelegate>

@end

@implementation DRNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.delegate = self;
    self.interactivePopGestureRecognizer.delegate = self;
}

-(void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated{
    self.interactivePopGestureRecognizer.enabled = [self.viewControllers count] > 1 ;
}


@end
